﻿using B.S.XZYData.Domain.BaseEntities;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.XZYData.Domain.RBAC
{
    /// <summary>
    /// 用户实体
    /// </summary>
    [SugarTable("AccountModel")]
    public class AccountModel : BaseEntity
    {
        /// <summary>
        /// 账号
        /// </summary>
        [SugarColumn(ColumnName = "Name", Length = 100, IsNullable = false)]
        public string Name { get; set; } = string.Empty;
        
        /// <summary>
        /// 密码
        /// </summary>
        [SugarColumn(ColumnName = "Pwd", Length = 100, IsNullable = false)]
        public string Pwd { get; set; } = string.Empty;
        
        /// <summary>
        /// 真实名称
        /// </summary>
        [SugarColumn(ColumnName = "RealName", Length = 100, IsNullable = false)]
        public string RealName { get; set; } = string.Empty;
        
        /// <summary>
        /// 是否启用(true(启用)\false(禁用))
        /// </summary>
        [SugarColumn(ColumnName = "IsState", IsNullable = false)]
        public bool IsState { get; set; } = true;
        
        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "CreateTime", IsNullable = false)]
        public DateTime CreateTime { get; set; } = DateTime.Now;
    }
}
